package com.xh.bussiness.teachbook.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xh.bussiness.teachbook.dao.TeachingBookAuditRecordMapper;
import com.xh.bussiness.teachbook.model.TeachingBookAuditRecord;
import com.xh.bussiness.teachbook.service.ITeachingBookAuditRecordService;
import com.xh.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 * @Author daiwei
 * @Description
 * @Date 2019/5/13 14:38
 **/
@Service
public class TeachingBookAuditRecordServiceImpl extends BaseServiceImpl<TeachingBookAuditRecordMapper, TeachingBookAuditRecord> implements ITeachingBookAuditRecordService {

    @Override
    public List<TeachingBookAuditRecord> queryByTeachingBookId(String teachingBookId) {
        QueryWrapper qw = new QueryWrapper();
        qw.eq("teaching_book_id", teachingBookId);
        qw.orderByAsc("create_time");
        return this.dao.selectList(qw);
    }

}
